package org.frog.sgs.card.general.camp;

/**
 * 阵营：魏、蜀、吴、群
 * 
 * @author duanxiangqi
 * @date 2012-10-19
 */
public enum Camp {
	/**
	 * 群
	 */
	qun(0),
	/**
	 * 魏
	 */
	wei(1),
	/**
	 * 蜀
	 */
	shu(2),
	/**
	 * 吴
	 */
	wu(3);

	public static Camp get(int type) {
		for (Camp camp : Camp.values()) {
			if (camp.getValue() == type) {
				return camp;
			}
		}
		return null;
	}

	private int value;

	Camp(int value) {
		this.value = value;
	}

	public int getValue() {
		return value;
	}

	public void setValue(int value) {
		this.value = value;
	}
}
